package com.young.trigger.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @description：
 * @author: yangyahui01
 * @date: 11/29/24 3:41 PM
 */
@Component
@ConfigurationProperties(prefix = "scheduler.web")
public class WebProperties {

    /**
     * 超级管理员，后续改成库存储
     */
    private List<String> admins = new ArrayList<>();

    /**
     * 回调域名
     */
    private String domain;

    /**
     * 回调端口
     */
    private Integer port;

    private int retryTimes = 1;

    public void setPort(Integer port) {
        this.port = port;
    }

    public Integer getPort() {
        return port;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public int getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(int retryTimes) {
        this.retryTimes = retryTimes;
    }

    public List<String> getAdmins() {
        return admins;
    }

    public void setAdmins(List<String> admins) {
        this.admins = admins;
    }

}

